package com.dao.member;

import com.entry.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface MemberMapper {
    //根据member_name查询
    public int getMemberByMemberName(String member_name);

    public Member getMemberById(int member_id);

    public Member getLoginMember(@Param("member_name") String member_name, @Param("member_pwd") String member_pwd);

/*    public int getRegisterMember(@Param("member_name") String member_name,
                                 @Param("member_nickname")  String member_nickname,
                                 @Param("member_pwd")  String member_pwd,
                                 @Param("member_gender")  String member_gender,
                                 @Param("member_address") String member_address,
                                 @Param("member_phone") String member_phone,
                                 @Param("member_email") String member_email);*/
    public int getRegisterMemberDate(@Param("member_name") String member_name,
                                 @Param("member_nickname")  String member_nickname,
                                 @Param("member_pwd")  String member_pwd,
                                 @Param("member_gender")  String member_gender,
                                 @Param("member_address") String member_address,
                                 @Param("member_phone") String member_phone,
                                 @Param("member_birthday") Date member_birthday,
                                 @Param("member_email") String member_email);

    public int modifyPasswordByEmail(@Param("member_pwd") String member_pwd, @Param("member_email") String member_email);

    public List<Member> getEmailMember(@Param("member_email") String member_email);
}
